<?php
use Phalcon\Mvc\Router\Annotations as Router,
    Phalcon\DI;

$router = new Router(false);
$router->removeExtraSlashes(true);

$request = DI::getDefault()->get("request");
$userAgent = $request->getUserAgent();

//api
$router->addResource("Plu\qdh\Controllers\Api\Index", "/api");
$router->addResource("Plu\qdh\Controllers\Api\Order", "/order");
$router->addResource("Plu\qdh\Controllers\Api\Admin", "/admin");
$router->addResource("Plu\qdh\Controllers\Api\Report", "/report");
$router->addResource("Plu\qdh\Controllers\Api\Passport", "/passport");

//admin
$router->addResource("Plu\qdh\Controllers\Admin\Index", "/houtai");

return $router;
?>
